package com.dailyblue.java.project.smbms.goods.feign;

import com.dailyblue.java.commons.util.JsonResult;
import com.dailyblue.java.project.smbms.goods.feign.fallback.StockFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "stock", fallback = StockFeignFallback.class)
public interface StockFeign {
    @GetMapping("/stock/{id}")
    JsonResult find(@PathVariable("id") int id);
}
